package com.agent.action.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.web.bind.annotation.DeleteMapping;

public interface PractiseCatalogMapper {
    @Delete("delete from practiseCatalog where practiseId=#{catalogId}")
    public boolean deletePractisesCatalog(String catalogId);

    @Select("select userId from practiseCatalog where practiseId=#{practiseId}")
    public String getUserId(String practiseId);

    @Update("update practiseCatalog set practiseName=#{name} where practiseId=#{practiseId}")
    public int updateName(String name,String practiseId);
}
